<div class="wide form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
    'id' => 'frmSearch'
)); ?>
    <table>
        <tr>
            <td class="alignRight"><?php echo Yii::t('BackEnd','Name'); ?>:
            <?php echo $form->textField($model,'name',array('size'=>30,'maxlength'=>255)); ?>
			
			<?php echo Yii::t('BackEnd','Parent item'); ?>:
			<?php echo $form->dropDownList($model,'parent_id', Common::parent_menu_arr($model->parent_id)); ?>
            <?php echo Yii::t('BackEnd','Status'); ?>
            <?php echo $form->dropDownList($model,'status',array(''=>Yii::t('BackEnd', '-- All --'), MenuItem::STATUS_ENABLED=>Yii::t('BackEnd', 'Enabled'), MenuItem::STATUS_DISABLED=>Yii::t('BackEnd', 'Disabled')),array('onchange'=>'javascript:$("#frmSearch").submit();')); ?>
            </td>
            <td class="alignLeft">
                <?php echo Yii::t('BackEnd','Link'); ?>:
                <?php echo $form->textField($model,'link',array('size'=>30,'maxlength'=>255)); ?>
                <?php echo CHtml::submitButton(Yii::t('Global', 'Search')); ?>
            </td>
        </tr>
    </table>
<?php $this->endWidget(); ?>
</div><!-- search-form -->